package com.api.client;

import java.util.List;

import com.api.client.json.ApiResultType;


public class ServiceImp implements Service{
	
	private VariablePath path;
	
	private Method method;
	
	private List<String> requiredParameters;
	
	private List<String> optionalParameters;
	
	private ApiResultType resultType;

	public ApiResultType getResultType() {
		return resultType;
	}

	public void setResultType(ApiResultType resultType) {
		this.resultType = resultType;
	}

	public Method getMethod() {
		return method;
	}

	public List<String> getRequiredParameters() {
		return requiredParameters;
	}

	public List<String> getOptionalParameters() {
		return optionalParameters;
	}

	public boolean hasRequiredParameters() {
		
		return (requiredParameters != null && requiredParameters.size() > 0);
	}

	public boolean hasOptionalParameters() {

		return (optionalParameters != null && optionalParameters.size() > 0);
	}

	public VariablePath getPath() {
		return path;
	}

	public void setPath(VariablePath path) {
		this.path = path;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public void setRequiredParameters(List<String> requiredParameters) {
		this.requiredParameters = requiredParameters;
	}

	public void setOptionalParameters(List<String> optionalParameters) {
		this.optionalParameters = optionalParameters;
	}
}
